package com.loctek.importexport.mvp.adapter;

import android.content.Context;
import android.text.TextUtils;

import com.loctek.importexport.R;
import com.loctek.importexport.base.BaseRecyclerAdapter;
import com.loctek.importexport.base.BaseRecyclerViewHolder;
import com.loctek.importexport.bean.getstoresiteResponse;
import com.loctek.importexport.bean.videoSearchByRecommendedResponse;
import com.loctek.importexport.util.ScreenUtil;

import java.util.List;

public class ProductAdapter extends BaseRecyclerAdapter<getstoresiteResponse.ProductInfo> {

    public ProductAdapter(Context context, List<getstoresiteResponse.ProductInfo> data) {
        super(context, data);
    }


    @Override
    public int getItemLayoutId(int viewType) {
        return R.layout.cell_product_item;
    }

    @Override
    public void bindData(BaseRecyclerViewHolder holder, int position, getstoresiteResponse.ProductInfo item) {
        holder.setText(R.id.tv_productname, item.productname + "");
        holder.setText(R.id.tv_scdptypename, item.scdptypename + "");
        holder.setText(R.id.tv_num, item.num + "");


    }
}
